<!--
 * @Author: ૮₍ ˙О˙₎ა
 * @Date: 2023-08-29 19:04:54
-->
<template>
  <DvBorderBox1>
    <div class="card">
      <div class="top">
        <div class="top_top">{{ title }}</div>
        <div class="top_Bot">{{ number }}</div>
      </div>
      <div class="center">
        <slot name="center"></slot>
      </div>
      <div class="line"></div>
      <div class="bottom">
        <slot name="bottom"></slot>
      </div>
    </div>
  </DvBorderBox1>
</template>

<script lang="ts" setup>
import { BorderBox1 as DvBorderBox1 } from '@kjgl77/datav-vue3'
// eslint-disable-next-line no-undef
defineProps<{
  title: string
  number: number
}>()
</script>

<script lang="ts">
export default {
  name: 'ItemCard',
}
</script>

<style lang="scss" scoped>
.card {
  text-align: center;
  padding: 5px;
  margin: 20px;
  color: #fff;

  .center {
    text-align: left;
    font-size: 12px;
    height: 50px;
  }
  .top_top {
    font-size: 14px;
    margin: 10px 0;
  }
  .top_Bot {
    color: aqua;
    font-size: 20px;
  }
  .line {
    height: 2px;
    background-color: #aaa;
  }
}
</style>
